package corej.review.lxf.oop.app;

import corej.review.lxf.oop.biz.DatabaseBiz;
import corej.review.lxf.oop.entity.Database;
import corej.review.lxf.oop.factory.ObjFactory;

public class DatabaseApplication {

    public static void main(String[] args) {
        DatabaseBiz biz = (DatabaseBiz) ObjFactory
                .newInstance(DatabaseBiz.class);
        Database oracle = (Database) ObjFactory.newInstance(Database.class);
        biz.connect(oracle);
        biz.execute("delete from my_table");
        biz.close(oracle);
    }
}
